
local md5 = require("md5_core");
local des56 = require("des56");

function md5.sumhexa (k)
    k = md5.sum(k)
    return (string.gsub(k, ".", function (c)
        return string.format("%02x", string.byte(c))
    end))
end

function commonlib.md5(text)
    return md5.sumhexa(text);
end

return md5;

-- https://keplerproject.github.io/md5/manual.html